package guda.house.dal.dao;

import guda.house.dal.dataobject.ResourceDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface ResourceDAO {


    Long insert(ResourceDO resource);


    ResourceDO getResourceById(Long resourceId);


    boolean delResourceById(Long resourceId);

    List<ResourceDO> getResourceByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long resourceId);

    List<ResourceDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(ResourceDO resource);

}
